﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

    <!--TODO: Tooltip on disabled controls-->
    <!--BEGIN LABEL-->
    <Style TargetType="{x:Type ToolTip}">
        <Setter Property="OverridesDefaultStyle" Value="true"/>
        <Setter Property="VerticalOffset" Value="-2" />
        <Setter Property="Panel.ZIndex" Value="99" />
        <Setter Property="Foreground" Value="{DynamicResource BrushTooltipForeground}" />
        <Setter Property="ToolTipService.ShowOnDisabled" Value="True" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ToolTip}">
                    <Border BorderBrush="{DynamicResource BrushTooltipBorder}" Padding="2,0,2,0" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3" Width="{TemplateBinding Width}" Height="auto" Background="{DynamicResource BrushTooltipBackground}">
                        <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" TextElement.FontSize="10" Style="{DynamicResource ControlFont}" />
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END LABEL-->
</ResourceDictionary>